import { _decorator, Component, director, Node } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('LoginTs')
export class LoginTs extends Component {


    @property(Node)
    wxBtn: any = null;
    @property(Node)
    phoneBtn: any = null;

    start() {
        this.wxBtn.on(Node.EventType.TOUCH_START, function (event) {
            director.loadScene('Index/首页')
        });
    }

    update(deltaTime: number) {
    }

    public gotoIndex() {
        director.loadScene('Index/首页')
    }
}


